package com.xxxx.api.pojo;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 购物车
 *
 * @author nathan-wang on 2020-11-06
 */
public class Cart {
    private Integer goodsId;
    private String originalImg;
    private String goodsName;
    private BigDecimal marketPrice;
    private Integer goodsNum;
    private String addTime;

    public String getAddTime() {
        return addTime;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Cart() {
    }


    public void setAddTime(String addTime) {
        this.addTime = addTime;
    }

    public String getOriginalImg() {
        return originalImg;
    }

    public void setOriginalImg(String originalImg) {
        this.originalImg = originalImg;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public BigDecimal getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(BigDecimal marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "goodsId=" + goodsId +
                ", originalImg='" + originalImg + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", marketPrice=" + marketPrice +
                ", goodsNum=" + goodsNum +
                ", addTime='" + addTime + '\'' +
                '}';
    }

    public Cart(Integer goodsId, String originalImg, String goodsName, BigDecimal marketPrice, Integer goodsNum, String addTime) {
        this.goodsId = goodsId;
        this.originalImg = originalImg;
        this.goodsName = goodsName;
        this.marketPrice = marketPrice;
        this.goodsNum = goodsNum;
        this.addTime = addTime;
    }
}
